//
//  weatherEntity.m
//  SXH
//
//  Created by 龚啸 on 15/9/11.
//  Copyright (c) 2015年 lyss. All rights reserved.
//

#import "weatherEntity.h"

@implementation weatherEntity

- (instancetype)initWithAttributes:(NSDictionary *)attributes
{
    self = [super init];
    if (!self) {
        return nil;
    }

    self.todayWeek = [attributes valueForKeyPath:@"week"];
    self.todayImage =[attributes valueForKeyPath:@"ico_i"];
    self.todayLow = [attributes valueForKeyPath:@"lowtemp"];
    self.todayHigh = [attributes valueForKeyPath:@"hightemp"];
    self.todayDate = [attributes valueForKeyPath:@"date"];
    self.todayType = [attributes valueForKeyPath:@"type"];
    self.todayImageOut = [attributes valueForKeyPath:@"ico_e"];
    return self;

}
@end
